package Iostart;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.EnumMap;
import java.util.List;

/**
 * collections测试类
 * @author AcerMr
 *
 */
public class collMain
{
	public static void main(String[] args)
	{
		System.out.println("========");
		Collection<Integer> col = new ArrayList<Integer>();
		/*List<Integer> co = new ArrayList<Integer>();*/
		col.add(10);
		Collections.addAll(col,30,20,40,15);
		System.out.println(col);
		List<Integer> ccc = (List<Integer>) col;
		Collections.sort(ccc);
		System.out.println(ccc);
		int max = Collections.max(col);
		System.out.println(max);
		
		
	}
}
